import {ElMessage} from "element-plus";

let instance = null

function resetMsg(msg) {
    if (instance) {
        instance.close()
    }
    instance = ElMessage({type: "error", message: msg})
}

export default resetMsg